import http from '../utils/request'

// 请求视频列表
export const getVlist = (data) => {
    //console.log(data)
    return http.get('/video/list',data)
}

export const getImgList = (data) => {
    return http.get('/img/list',data)
}
export const palyVideo = (data) => {
    return http.get('/video/open',data)
}
export const idfyVideo = (data) => {
    return http.get('/video/idfy',data)
}

export const idfyImg = (data) => {
    return http.get('/img/idfy',data)
}
export  const deletevideo = (data) => {
    return http.get('/video/del',data)
}
export  const deleteimg = (data) => {
    return http.get('/img/del',data)
}

export  const downfile = (data) => {
    return http.post('/up/down',data)
}
// 登录权限
// export const getMenu = (data) => {
//     return http.post('/login/getMenu',data)
// }

export const register = (data) => {
    return http.post('/ai/reg',data)
}

export const login = (data) => {
    return http.post('/mtor/login',data)
}

export const getUserList = (data) => {
    return http.get('/user/list',data)
}
export const createUser = (data) => {
    return http.post('/ai/reg',data)
}
export const deleteUser = (data) => {
    return http.get('/user/del',data)
}
export const updateUser = (data) => {
    return http.post('/user/upd',data)
}
export const getwarnList = (data) => {
    return http.get('/warn/list',data)
}
export const  subvideo = (data) => {
    return http.post('/up/subvideo',data)
}
export const  getsort = (data) => {
    return http.get('/sub/getsort',data)
}
export const  addsub = (data) => {
    return http.post('/sub/aadvideo',data)
}
export const  addcomment = (data) => {
    return http.post('/comment/add',data)
}
export const  commentlist = (data) => {
    return http.get('/comment/list',data)
}
export const  hisadd = (data) => {
    return http.post('/his/add',data)
}


export const  hislist = (data) => {
    return http.get('/his/list',data)
}
export const  addcon = (data) => {
    return http.post('/concern/conit',data)
}
export const  mycon = (data) => {
    return http.get('/concern/mycon',data)
}
export const  myfan = (data) => {
    return http.get('/concern/myfans',data)
}
export const  delcon = (data) => {
    return http.get('/concern/delcon',data)
}
export const  checkcon = (data) => {
    return http.post('/concern/check',data)
}
export const  listmyc = (data) => {
    return http.post('/concern/listmyc',data)
}
export const  myvideo = (data) => {
    return http.get('/video/listByUid',data)
}
export const  myvideoall = (data) => {
    return http.get('/video/listByme',data)
}
export const  checklist = (data) => {
    return http.get('/check/list',data)
}
export const  checkok = (data) => {
    return http.get('/check/ok',data)
}
export const  checkno = (data) => {
    return http.get('/check/no',data)
}
export const  uservlist = (data) => {
    return http.get('/video/listByUid',data)
}
export const  backai = (data) => {
    return http.get('/video/backidfy',data)
}
export const  delw = (data) => {
    return http.post('/warn/del',data)
}